Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat change path error checking colored errors #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

samej71
Copy link

@samej71 samej71 commented May 6, 2020

This adds

  • The ability to change the path from /opt/tmp within the script
  • Will display message and prevent some commands from executing if the path doesn't exist or is not writable
  • Added some error checking so destructive commands do not execute if the save/backup command(s) fail

Quickly written and not yet thoroughly tested after installing and running this program for the first time and selecting option 7 because my NVRAM is almost full and I need to recover the space, only to have the backup fail and the things I wanted to keep erased without a backup.

My first PR, and I'm sure I did not follow protocol :) I tried to follow the coding style already in the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants